import Vue from 'vue';

const list = (params) => {
    return Vue.prototype.$u.get('goods/list', params);
};

const detail = (params) => {
    return Vue.prototype.$u.get('goods/detail', params);
};

const category = (params) => {
    return Vue.prototype.$u.get('goods/category', params);
};

const collect = (params) => {
    return Vue.prototype.$u.post('goods/collect', params);
};

const collect_list = (params) => {
    return Vue.prototype.$u.get('goods/collect_list', params);
};
export default {
    list,
    detail,
    category,
    collect,
    collect_list,
};
